﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using UI.WebPage.Background;
using BLL.AuthModel;
using Model.AuthModel;
using Com.Ompchina.Lib.Net;
namespace com.lifan.motorcycle.admin.system
{
    public partial class list_stafflogin : ListInfoPage, IListInfo
    {
        protected StaffInfo _DefaultStaff = new StaffInfo();
        protected void Page_Load(object sender, EventArgs e)
        {
            this.InitDefault();
        }

        #region IListInfo 成员

        public void InitParameter()
        {
            throw new NotImplementedException();
        }

        public void ExecuteUpdate()
        {
            throw new NotImplementedException();
        }

        #endregion

        #region 页面私有方法
        protected void InitDefault()
        {
            int sid = RequestParam.GetInt(Request, "sid");
            _DefaultStaff = new StaffBLL().GetStaffByID(sid);
            if (_DefaultStaff.StaffID == 0)
            {
                Response.Redirect("list_staff.aspx?action=list");
                Response.End();
            }
        }
        protected IList<StaffLoginInfo> _GetLogin(int pageSize, out int recordCount)
        {
            return new StaffLoginBLL().BackList(_DefaultStaff.StaffID, PageIndex, pageSize, out recordCount);
        }
        #endregion        
    }
}